<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

use App\Logic\Payment\PayLogic;
use Hyperf\HttpServer\Router\Router;
use function Hyperf\Support\make;

Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');


#回调地址
Router::addGroup("/notify",function (){
    Router::post("/alipay","App\Controller\NotifyController@alipay"); //支付宝回调
    Router::post("/wxpay","App\Controller\NotifyController@wxpay"); // 微信回调
    Router::post("/unipay","App\Controller\NotifyController@unipay"); // 银联支付回调
});